<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['namespace' => 'admin'], function(){
    // 控制器在 "App\Http\Controllers\Admin" 命名空间下
    Route::any('login/login','LoginController@login');
    //验证码
    Route::any('login/getCheckCode','LoginController@getCheckCode');
    //首页方法
    Route::any('admin/index','AdminController@index');
    Route::any('admin/manage','AdminController@manage');
    Route::any('admin/merch_show','AdminController@merch_show');
    Route::any('admin/merch_audit','AdminController@merch_audit');
    Route::any('admin/merch_del','AdminController@merch_del');
    Route::any('admin/merch_list','AdminController@merch_list');
    Route::any('admin/store_type','AdminController@store_type');
    Route::any('admin/store_type_exec','AdminController@store_type_exec');
});
